<div class="container">
<form class="form form-ajax" method="post" action="{:request()->url()}"  autocomplete="off">
<div class="tab">
	<div class="tab-title clear">
		<a href="#" class="on">基本设置</a>
		<a href="#">优化设置</a>
		 
	</div>
	<ul class="tab-body">
		<li class="on">
	<div class="form-item ">
		<label class="form-label"><span>*</span>名称：</label>
		<div class="form-input">
			<input type="text" class="input" name="name" value="{$vo['name']}" data-rule="required"  >
		</div>
	</div>
	<div class="form-item ">
		<label class="form-label"><span>*</span>别名：</label>
		<div class="form-input">
			<input type="text" class="input" name="letter" value="{$vo['letter']}"   >
		</div>
	</div>
	<div class="form-item ">
		<label class="form-label">介绍：</label>
		<div class="form-input">
			<textarea name="intro" class="textarea">{$vo['intro']}</textarea>
		</div>
	</div>
	<div class="form-item ">
		<label class="form-label">外链：</label>
		<div class="form-input">
			<input type="text" class="input" name="link" value="{$vo['link']}"   >
		</div>
	</div>
	 
	<div class="form-item ">
		<label class="form-label">导航展示：</label>
		<div class="form-input">
			{:html_select('nav_on',$vo['nav_on'],dict_list(1))}
		</div>
	</div>
	<div class="form-item ">
		<label class="form-label">首页展示：</label>
		<div class="form-input">
			{:html_select('index_on',$vo['index_on'],dict_list(1))}
		</div>
	</div>
    
    {if $vo['mid']!='1'}
	<div class="form-item list-page-item" >
		<label class="form-label">列表样式：</label>
		<div class="form-input">
			{:html_select('list_style',$vo['list_style'],dict_list(4))}
		</div>
	</div>
	
	 <div class="form-item ">
	 	<label class="form-label">列表页模板：</label>
	 	<div class="form-input">
	 		{:html_select('temp_list',$vo['temp_list'],temp_list('list'),'选择模板')}
	 	</div>
	 </div>
	 <div class="form-item list-page-item">
	 	<label class="form-label">内容页模板：</label>
	 	<div class="form-input">
	 		{:html_select('temp_read',$vo['temp_read'],temp_list('read'),'选择模板')}
	 	</div>
	 </div>
     {/if}
	<div class="form-item ">
		<label class="form-label">位置：</label>
		<div class="form-input">
			<input type="text" class="input" name="sort" value="{$vo['sort']}"  data-rule="required"  >
		</div>
	</div>
		 
	 </li>
	 		<li>
	 			<div class="form-item ">
	 				<label class="form-label">标题：</label>
	 				<div class="form-input">
	 					<input type="text" class="input" name="seo_title" value="{$vo['seo_title']}" >
	 				</div>
	 			</div>
	 			<div class="form-item ">
	 				<label class="form-label">关键词：</label>
	 				<div class="form-input">
	 					<textarea name="seo_key" class="textarea">{$vo['seo_key']}</textarea>
	 				</div>
	 			</div>
	 			<div class="form-item ">
	 				<label class="form-label">描述：</label>
	 				<div class="form-input">
	 					<textarea name="seo_desc" class="textarea">{$vo['seo_desc']}</textarea>
	 				</div>
	 			</div>
	 		</li>
		</ul>
	 </div>
	 	
	<div class="form-item">
		<div class="form-input">
			<button type="submit" class="btn" id="sub">提交</button>
		</div>
	</div>
</form>

</div>

 <script>
	 $(function(){
		 $("#mid").change(function(){
			 if($(this).val()=='1'){
				$(".list-page-item").hide();
			 }else{
				 $(".list-page-item").show();
			 }
		 });
		 $("#mid").change();
	 })
 </script>